import request from '@/utils/request'

export function getRolesList(page, size) {
  return request({
    url: '/roles/list',
    method: 'post',
    data: {
      page,
      size
    }
  })
}

export function selectList() {
  return request({
    url: '/roles/selectList',
    method: 'get',
    data: {}
  })
}

export function addOrEditRole(data) {
  return request({
    url: '/roles/addOrEditRole',
    method: 'post',
    data
  })
}

export function del(id) {
  return request({
    url: '/roles/del',
    method: 'post',
    data: {
      id
    }
  })
}
